package cn.kgc.vue.commons;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 课工场
 * @date 2023/12/7
 * @description   搜索条件的封装
 */
@Data
@ApiModel("QueryCondition")
public class QueryCondition<T> {

    @ApiModelProperty(value = "当前页",example = "1")
    private Integer  page;
    @ApiModelProperty(value = "每页显示的条数",example = "5")
    private  Integer limit;
    @ApiModelProperty(value = "搜索条件",example = "{username:tom}")
    private T query;

}
